import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './styles/index.scss'

import { createPinia } from 'pinia'
import router from './router'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
// 注意：在router引入之后引入
import './permission'
//添加中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'


const app = createApp(App)
const pinia = createPinia();
app.use(ElementPlus,{locale:zhCn})
pinia.use(piniaPluginPersistedstate);
app.use(pinia)
app.use(router)

app.mount('#app')